from django.shortcuts import render
from django.http import HttpResponse
from people.models import Person
# Create your views here.
def add(request):
    a=request.GET['a']
    b=request.GET['b']
    return HttpResponse(str(int(a)+int(b)))

def addPerson(request):
    p=Person()
    p.name=request.GET['name']
    p.age=int(request.GET['age'])
    p.wife=request.GET['wife']
    p.money=int(request.GET['money'])
    p.save()

